﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PMSSys
{
    public partial class BoneMarrowReadingView : Form
    {
        public BoneMarrowReadingView()
        {
            InitializeComponent();
        }
        private void modifyChecker(object sender, EventArgs e)
        {
            isModified = true;
        }
        private bool isModified = false;
        private bool addMode = false;
        private void closeLogic(object sender, EventArgs e)
        {
            this.Close();

        }

        private void BoneMarrowReadingView_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (isModified)
            {
                DialogResult res = uiUtility.confirmSaveDialog();
                if (res != DialogResult.Cancel)
                {
                    if (res == DialogResult.Yes)
                    {
                        if (addMode)
                        {
                        }
                        else
                        {
                        }
                    }

                }
                else
                    e.Cancel = true;
            }
        }

        private void BoneMarrowReadingView_Load(object sender, EventArgs e)
        {
            ToolTip t1 = uiUtility.tooltips();
            t1.SetToolTip(this.button6, "Back");
        }

        }
}
